package com.yanqu.road.entity.zhaoshang;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

//冷却时间
@FieldTypeAnnotation(tableName = "t_c_zs_cool_down")
public class ZsUserCoolDown  extends DataObject {

    @FieldTypeAnnotation(select = true, update = true)
    private long userId;

    @FieldTypeAnnotation
    private long serverId;

    @FieldTypeAnnotation
    private long lastUpdateTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if(this.serverId != serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        if(this.lastUpdateTime != lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }
}
